import http from '@/utils/http.ts';

// [主页]获取全部品牌
// http://doc.phonebus.corpautohome.com/project/1531/interface/api/115045
export function getBrandAll(params) {
	return http.get('/api/benefit/collector/brandAll', params);
}

// [主页]查询在售车系权益列表
// http://doc.phonebus.corpautohome.com/project/1531/interface/api/121140
export function getCollectorSeriesList(params) {
	return http.get('/api/benefit/collector/seriesInfoWithBenefitState', params);
}

// [车系页]查询爬取项列表
// http://doc.phonebus.corpautohome.com/project/1531/interface/api/83520
export function getSeriesBenefitList(params) {
	return http.get('/api/benefit/collector/list', params);
}

// [车系页]查询在售车型列表
// http://doc.phonebus.corpautohome.com/project/1531/interface/api/85426
export function getSeriesSpecList(params) {
	return http.get('/api/benefit/collector/specInfoList', params);
}

// [编辑页]查询爬取项详情
// http://doc.phonebus.corpautohome.com/project/1531/interface/api/121420
export function getCollectorDetail(params) {
	return http.get('/api/benefit/collector/detail', params);
}

// [车系页]批量关联数据
// http://doc.phonebus.corpautohome.com/project/1531/interface/api/121465
export function batchAssociate(params) {
	return http.get('/api/benefit/collector/associate', params);
}

// [车系页]批量解除关联
// http://doc.phonebus.corpautohome.com/project/1531/interface/api/121470
export function batchDisassociate(params) {
	return http.get('/api/benefit/collector/disassociate', params);
}
